﻿@model Tasks.UI.Models.Article.ArticleModel
@{
    ViewBag.Tab = "info";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="/css/main.css" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Config.GetCssResourcePath("flag.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.combobox.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //init
        $(function () {
            datePicker("#PlanStartTime");
            datePicker("#PlanEndTime");
            datePicker("#PracticalStartTime");
            datePicker("#PracticalEndtTime");
            $.ctrl.employeeDropdownList("OperatorName", "OperatorID");
        })
        
    </script>
    <style type="text/css">
        #large
        {
            position: absolute;
            display: none;
            z-index: 999;
        }
    </style>
</head>
<body>
    <div id="container">
        @Html.OutputNavigation("任务信息", PageResult.cancel)
        @Html.OutputMessage(Model.Message, Model.MessageType)
        <table style="width: 100%;" class="tblStyle1">
            <tr>
                <td style="width: 120px;">
                    项目类型:1
                </td>
                <td>
                    @Model.Article.ProjectIDStr()
                </td>
            </tr>
            <tr>
                <td>
                    问 &nbsp;&nbsp; 题：
                </td>
                <td>@Model.Article.Title
                </td>
            </tr>
            <tr>
                <td valign="top">
                    描 &nbsp;&nbsp; 述：
                </td>
                <td>
                    @MvcHtmlString.Create(MyLib.Util.StringUtil.CharToHtml(Model.Content))
                    <br />
                    @if (!string.IsNullOrEmpty(Model.Images))
                    {
                        <img id="Img" src="@Config.GetResourceUrl(Model.Images)" alt="" border="0" width="200px" height="105px"/>
                    }
                    <br />
                    <a href="@Config.GetResourceUrl(Model.Images)" target="_blank">@Model.Images</a>
                </td>
            </tr>
            <tr>
                <td>
                    计划开始日期:
                </td>
                <td>
                    @Model.PlanStartTime
                </td>
            </tr>
            <tr>
                <td>
                    计划结束日期：
                </td>
                <td>
                    @Model.PlanEndTime
                </td>
            </tr>
            <tr>
                <td>
                    实际开始日期:
                </td>
                <td>
                    @Model.PracticalStartTime
                </td>
            </tr>
            <tr>
                <td>
                    实际结束日期：
                </td>
                <td>
                    @Model.PracticalEndtTime
                </td>
            </tr>
            <tr>
                <td>
                    状 &nbsp;&nbsp; 态:
                </td>
                <td>
                    @Model.Article.StateStr()
                </td>
            </tr>
            <tr>
                <td>
                    处 理 人:
                </td>
                <td>
                    @Model.OperatorName
                </td>
            </tr>
            <tr>
                <td valign="top">
                    子任务:
                </td>
                <td>
                    @{
                        ArticleBLL articleBLL = new ArticleBLL();
                        IList<Article> childArticles = articleBLL.GetArticleByParentID(Model.ID);
                       
                       
                    }
                    @foreach (Article reply in childArticles)
                    {
                        @reply.CreateUserName @reply.CreateTime @reply.Title
                        <br />                       
                    }
                </td>
            </tr>
            <tr>
                <td valign="top">
                    回 &nbsp;&nbsp; 复:
                </td>
                <td>
                    @foreach (Article reply in Model.replyArticles)
                    {
                        <dl>
                            <dt>@reply.CreateUserName @reply.CreateTime</dt>
                            <dl>@reply.Content</dl>
                        </dl>                                       
                    }
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <form action="/bug/doReplyTask?id=@Model.ID" method="post">
                    <textarea id="Content" name="Content" cols="20" rows="2" style="width: 400px; height: 150px;"></textarea>
                    <br />
                    <button id="Submit1" class="blue" type="submit">
                        <span>保存并继续编辑</span>
                    </button>
                    </form>
                </td>
            </tr>
        </table>
        <div>
        </div>
    </div>
</body>
</html>
